-- GENERATED SPELL FOR [Mangy Wolf] --


function spell0_525(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_525', 670, 1)
end

function spell1_525(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_525', 605, 1)
end

function spell2_525(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_525', 0, 1)
end

function spell3_525(pUnit, Event) --@Furious Howl,Self--
pUnit:FullCastSpellOnTarget(24604,pUnit)
pUnit:RegisterEvent('Sorts_525', 20000, 1)
end

function spell4_525(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_525', 0, 1)
end

function spell5_525(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_525', 0, 1)
end

function Sorts_525(pUnit, Event)
local choix_sorts_525 = math.random(0, 5)
if choix_sorts_525 == 0 then
pUnit:RegisterEvent('spell0_525', 1, 1)
end
if choix_sorts_525 == 1 then
pUnit:RegisterEvent('spell1_525', 1, 1)
end
if choix_sorts_525 == 2 then
pUnit:RegisterEvent('spell2_525', 1, 1)
end
if choix_sorts_525 == 3 then
pUnit:RegisterEvent('spell3_525', 1, 1)
end
if choix_sorts_525 == 4 then
pUnit:RegisterEvent('spell4_525', 1, 1)
end
if choix_sorts_525 == 5 then
pUnit:RegisterEvent('spell5_525', 1, 1)
end
end

function mob525_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_525', math.random(1500, 3000), 1)
end

function mob525_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob525_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob525_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(525, 1, 'mob525_Action')
RegisterUnitEvent(525, 2, 'mob525_Leave')
RegisterUnitEvent(525, 3, 'mob525_Kill')
RegisterUnitEvent(525, 4, 'mob525_Die')
